package com.wancaijinfu.constant;

import java.util.HashMap;
import java.util.Map;

public class Params {
	Map<String, String> map = new HashMap<String, String>();
	
	public static Params getInstance() {
		Params params = new Params();
		return params;
	}
	
	public Params add(String key, String value) {
		map.put(key, value);
		return this;
	}
	
	public Params add(String key, int value) {
		map.put(key, String.valueOf(value));
		return this;
	}
	
	public Params add(String key, Boolean value) {
		map.put(key, String.valueOf(value));
		return this;
	}
	
	public Map<String, String> getMap() {
		return map;
	}
}
